<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/routine/achievement/index/list";
	document.form1.submit();
}

$(function(){
	$("#fullScreen").click(function(){
		fullScreen.FullScreen("mylist"); 
	});
})
</script>
<style>
	tr td{
		text-align: center;
   		vertical-align: middle;
	}
</style>
	</head>
	<body id="master">
			<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						个人业绩报表
						<div class="tools-btn">
							<a href="####" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
						<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tbody>
									<tr>
										<td align="right">
											业绩时间：
										</td>
										<td>
											<input type="text" readonly="readonly" id="reportdate"
											name="yearmonth" value="${yearmonth}" class="input-txt"
											onclick="WdatePicker({dateFmt:'yyyy年MM月',realDateFmt:'yyyyMM',vel:'startyearmonth'})" />
										</td>
										<td align="right">
											<a href="javascript:" onclick="doQuery()" class="linkbtn"><span>查
													询</span>
											</a>
										</td>
								</tbody>
							</table>
						</div>
						<!-- 查詢列表 -->
				<div id="mylist" style="height: 365px;">
						<table id="mytable" width="100%" cellspacing="0" cellpadding="0" border="1"
							id="dtable" style="border: 1px !   import">
							<tbody>
							<tr height="19" style="height: 14.25pt">
								<td width="977" height="19"
									style="height: 14.25pt; width: 736pt" class="xl104"
									colspan="13">
									${agentLevel}：${uesrName}，${year}年(${month}月26日--${month+1}月25日)业绩报表
								</td>
							</tr>
							<tr height="18"
								style="mso-height-source: userset; height: 14.1pt">
								<td width="53" height="37" style="height: 28.35pt; width: 40pt"
									class="xl106" rowspan="2">
									统计
								</td>
								<td style="border-left: none" class="xl105" colspan="3">
									第一周预收保费(${firWeek})
								</td>
								<td style="border-left: none" class="xl105" colspan="3">
									第二周预收保费(${secWeek})
								</td>
								<td style="border-left: none" class="xl105" colspan="3">
									第三周预收保费(${thrWeek})
								</td>
								<td style="border-left: none" class="xl105" colspan="3">
									第四周预收保费(${lastWeek})
								</td>
							</tr>
							<tr height="19"
								style="mso-height-source: userset; height: 14.25pt">
								<td height="19"
									style="height: 14.25pt;  "
									class="xl97">
									客户
								</td>
								<td style=" " class="xl97">
									标保
								</td>
								<td style=" " class="xl97">
									价保
								</td>
								<td style=" " class="xl97">
									客户
								</td>
								<td style=" " class="xl97">
									标保
								</td>
								<td style=" " class="xl97">
									价保
								</td>
								<td style=" " class="xl97">
									客户
								</td>
								<td style=" " class="xl97">
									标保
								</td>
								<td style=" " class="xl97">
									价保
								</td>
								<td style=" " class="xl97">
									客户
								</td>
								<td style=" " class="xl97">
									标保
								</td>
								<td style=" " class="xl97">
									价保
								</td>
							</tr>
							<c:set var="i" value="1"></c:set>
							<c:forEach items="${infoList}" var="list">
							<tr height="18">
								<c:if test="${i==1}">
								<c:set var="i" value="2"></c:set>
									<td rowspan="${fn:length(infoList)}">
										<br>
									</td>
								</c:if>
								<c:if test="${i!=1}">
								<td width="73" style="width: 55pt">
								 	${list.FIRAPPLICANTNAME}
								</td>
								<td width="73" style="width: 55pt">
									${list.FIRPROSTANDARDPREM}
								</td>
								<td width="73" style="width: 55pt">
									${list.FIRVALUEPREM}
								</td>
								<td width="73" style="width: 55pt">
								 	${list.SECAPPLICANTNAME}
								</td>
								<td width="73" style="width: 55pt">
									${list.SECPROSTANDARDPREM}
								</td>
								<td width="73" style="width: 55pt">
									${list.SECVALUEPREM}
								</td>
								<td width="73" style="width: 55pt">
								 	${list.THRAPPLICANTNAME}
								</td>
								<td width="73" style="width: 55pt">
									${list.THRPROSTANDARDPREM}
								</td>
								<td width="73" style="width: 55pt">
									${list.THRVALUEPREM}
								</td>
								<td width="73" style="width: 55pt">
								 	${list.FORAPPLICANTNAME}
								</td>
								<td width="73" style="width: 55pt">
									${list.FORPROSTANDARDPREM}
								</td>
								<td width="73" style="width: 55pt">
									${list.FORVALUEPREM}
								</td>
								</c:if>
							</tr>
							</c:forEach>
							
						
							<tr height="18"
								style="height: 14.1pt">
								<td width="53" height="224" style="height: 170.4pt; width: 40pt"
									class="xl109" rowspan="12">
									合计
								</td>
								<td class="xl110" rowspan="12">
									本周件数：<br>
									${firCountValuePrem}
								</td>
								<td class="xl110" rowspan="4" colspan="2">
									本周受理价保：
									<br/>
									${firSumValuePrem}
								</td>
								<td class="xl110" rowspan="6">
									本周件数：
									<br>
									${secCountValuePrem}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周受理价保：
									<br>
									${secSumValuePrem}
								</td>
								<td class="xl110" rowspan="6">
									本周件数：
									<br/>
									${thrCountValuePrem}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周受理价保：
									<br>
									${thrSumValuePrem}
								</td>
								<td class="xl110" rowspan="6">
									本周件数：
									${forCountValuePrem}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周受理价保：
									<br>
									${forSumValuePrem}
								</td>
							</tr>
							<tr height="18"
								style="mso-height-source: userset; height: 14.1pt">
							</tr>
							<tr height="19" style="height: 14.25pt">
								<td width="146" height="38" style="height: 28.5pt; width: 110pt"
									class="xl109" rowspan="2" colspan="2">
									本周预收回单：
									<br>
									${secCountPolicy}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周预收回单：
									<br>
									${thrCountPolicy}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周预收回单：
									<br>
									${forCountPolicy}
								</td>
							</tr>
							<tr height="19" style="height: 14.25pt">
							</tr>
							<tr height="18"
								style="mso-height-source: userset; height: 14.1pt">
								<td width="146" height="75"
									style="height: 56.85pt; width: 110pt" class="xl109" rowspan="4"
									colspan="2">
									本周预收回单：
									<br>
									${firCountPolicy}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周回单率：
									<br>
									${secPolicyPersent}%
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周回单率：
									<br>
									${thrPolicyPersent}%
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									本周回单率：
									<br>
									${forPolicyPersent}%
								</td>
							</tr>
							<tr height="19" style="height: 14.25pt">
							</tr>
							<tr height="19" style="height: 14.25pt">
								<td height="113" style="height: 85.35pt;"
									class="xl110" rowspan="6">
									两周件数：
									<br/>
									${perSecCountValuePrem}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									两周受理价保：
									<br>
									${perSecSumValuePrem}
								</td>
								<td style="" class="xl110" rowspan="6">
									三周件数：
									<br/>
									${perThrCountValuePrem}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									三周受理价保：
									<br>
									${perThrSumValuePrem}
								</td>
								<td style="" class="xl110" rowspan="6">
									四周件数：
									<br/>
									${perLastCountValuePrem}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									四周受理价保：
									<br>
									${perLastSumValuePrem}
								</td>
							</tr>
							<tr height="19" style="height: 14.25pt">
							</tr>
							<tr height="18"
								style="mso-height-source: userset; height: 14.1pt">
								<td width="146" height="75"
									style="height: 56.85pt; width: 110pt" class="xl109" rowspan="4"
									colspan="2">
									本周回单率：
									<br>
									${firPolicyPersent}%
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									两周预收回单：
									<br>
									${perSecCountPolicy}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									三周预收回单：
									<br>
									${perThrCountPolicy}
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									四周预收回单：
									<br>
									${perLastCountPolicy}
								</td>
							</tr>
							<tr height="19" style="height: 14.25pt">
							</tr>
							<tr height="19" style="height: 14.25pt">
								<td width="146" height="38" style="height: 28.5pt; width: 110pt"
									class="xl109" rowspan="2" colspan="2">
									两周回单率：
									<br>
									${perSecPolicyPersent}%
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									三周回单率：
									<br>
									${perThrPolicyPersent}%
								</td>
								<td width="146" style="width: 110pt" class="xl109" rowspan="2"
									colspan="2">
									四周回单率：
									<br>
									${perLastPolicyPersent}%
								</td>
							</tr>
							<tr height="19" style="height: 14.25pt">
							</tr>
						</tbody>
					</table>
				</div>
				</div>
				</div>
			<div class="webpart-foot">
                    <div class="webpart-foot-item">
                    </div>
            </div>
            </div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
